@extends('layouts.default') @section('main')
    <script type="text/javascript" src="{{URL::asset('js/')}}/common.js"></script>
    <div id="content">
        <div id="content-header">
            <div id="breadcrumb">
                <a href="{{url('home')}}" title="返回首页" class="tip-bottom"><i
                            class="icon-home"></i> 首页</a>
                <a href="{{url('user/index')}}" class="tip-bottom">会员管理</a>
                <a href="#" class="current">新增会员</a>
            </div>
        </div>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span9">
                    <div class="widget-box">
                        <div class="widget-title">
						<span class="icon"> <i class="icon-align-justify"></i>
						</span>
                            <h5>新增会员—选择会员角色</h5>
                        </div>
                        <div class="widget-content nopadding">
                            <form action="{{url('user/create')}}" method="post" id="adForm" class="form-horizontal">
                                <div class="control-group">
                                    <label class="control-label"><span class="redD">*</span>请选择会员角色 :</label>
                                    <div class="controls">
                                        <select  name="role" class="span11" >
                                            <option value="">请选择会员角色</option>
                                            <option value="2">普通用户</option>
                                            <option value="3">投资人</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-actions">
                                    <input type="hidden" name="_token" value="{{ csrf_token() }}">
                                    <button type="submit" id="doSave" class="btn btn-success">下一步</button>
                                </div>
                            </form>
                            @include('errors.list')
                            @include('message.flash')
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
//        $("#doSave").click(function(){
//            ajaxRequest($('#adForm').serializeArray(),$('#adForm').attr('action'),function(data){
//                if(data.status){
//                    alert(data.message);
//                    window.location.href = data.forwardUrl;
//                }else{
//                    alert(data.message);
//                }
//            });
//        });
    </script>
@stop
